#include <iostream>
#include <vector>
#include <string>
#include "highPrecisionDecimal.h"

using namespace std;

int main() {
	HighPrecisionDecimal num_("1");
	string str;
	int n;
	while (cin >> str >> n) {
		HighPrecisionDecimal num(str);
		for (int i = 0; i < n; i++) {
			num_ = num_ * num;
		}
		num_.print();
	}

	return 0;
}
